package com.jweight;

import java.util.HashMap;

public class JImageComponent {
	private String image;	
	private double weightVal;
	private String imageURL;
	private HashMap<String, String> contextMap=new HashMap<String, String>();
	private HashMap<String, Double> contextProbabilityMap=new HashMap<String, Double>();
	
	public void setContextMap(String contextVariable,String contextValue)
	{
		contextMap.put(contextVariable, contextValue);
		
	}
	public String getContextValueFromMap(String contextVarible)
	{
		return contextMap.get(contextVarible);
	}
	public void setcontextProbabilityMap(String contextVariable,Double probabilityValue)
	{
		 contextProbabilityMap.put(contextVariable, probabilityValue);
		
	}
	public Double getcontextProbabilityValueFromMap(String contextVarible)
	{
		return  contextProbabilityMap.get(contextVarible);
	}	
	
	public void setImage(String elename){
		image=elename;		
		
	}
	public String getImage(){
		
		return image; 
	}
	public void setWeigthVal(double weigVal){
		weightVal=weigVal;		
		
	}
	public double getWeigthVal(){
		
		return weightVal; 
	}
	public void setImageURL(String elename){
		imageURL=elename;		
		
	}
	public String getImageURL(){
		
		return imageURL; 
	}
}
